
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>SSH 详解 · 日常学习笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-footer-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Tomcat和Ngnix和Apache.html" />
    
    
    <link rel="prev" href="Linux编译安装软件包详解.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"Xiechengqi","repo":"LearningNotes","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../网络学习资源整理/">
            
                <a href="../网络学习资源整理/">
            
                    
                    网络学习资源整理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../网络学习资源整理/技术学习.html">
            
                <a href="../网络学习资源整理/技术学习.html">
            
                    
                    技术学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../网络学习资源整理/运维博客.html">
            
                <a href="../网络学习资源整理/运维博客.html">
            
                    
                    运维博客
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../网络学习资源整理/工具.html">
            
                <a href="../网络学习资源整理/工具.html">
            
                    
                    工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../网络学习资源整理/静态博客模板.html">
            
                <a href="../网络学习资源整理/静态博客模板.html">
            
                    
                    静态博客模板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../网络学习资源整理/静态网站pages服务.html">
            
                <a href="../网络学习资源整理/静态网站pages服务.html">
            
                    
                    静态网站pages服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../网络学习资源整理/静态pages的CI和CD.html">
            
                <a href="../网络学习资源整理/静态pages的CI和CD.html">
            
                    
                    静态pages的CI和CD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../网络学习资源整理/Hugo学习.html">
            
                <a href="../网络学习资源整理/Hugo学习.html">
            
                    
                    Hugo学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../心灵鸡汤/">
            
                <a href="../心灵鸡汤/">
            
                    
                    心灵鸡汤
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../心灵鸡汤/心灵鸡汤.html">
            
                <a href="../心灵鸡汤/心灵鸡汤.html">
            
                    
                    语录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="./">
            
                <a href="./">
            
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Linux常用命令.html">
            
                <a href="Linux常用命令.html">
            
                    
                    Linux常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Linux小知识.html">
            
                <a href="Linux小知识.html">
            
                    
                    平时 linux 遇到的问题解决办法和扩展小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="Linux性能相关常用命令.html">
            
                <a href="Linux性能相关常用命令.html">
            
                    
                    Linux性能相关常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Linux各种安装下载慢解决方法.html">
            
                <a href="Linux各种安装下载慢解决方法.html">
            
                    
                    Linux各种安装下载慢解决方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="APT-剖析详解.html">
            
                <a href="APT-剖析详解.html">
            
                    
                    APT 原理剖析、详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="Linux主机、虚拟机和docker网络配置.html">
            
                <a href="Linux主机、虚拟机和docker网络配置.html">
            
                    
                    Linux 主机、虚拟机和docker网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="Linux文件系统学习.html">
            
                <a href="Linux文件系统学习.html">
            
                    
                    Linux文件系统学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="Linux用户和用户组管理.html">
            
                <a href="Linux用户和用户组管理.html">
            
                    
                    Linux用户和用户组管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="Linux用户增删改等学习.html">
            
                <a href="Linux用户增删改等学习.html">
            
                    
                    Linux用户增删改等学习.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="Linux程序存放目录.html">
            
                <a href="Linux程序存放目录.html">
            
                    
                    Linux程序存放目录.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="Linux编译安装软件包详解.html">
            
                <a href="Linux编译安装软件包详解.html">
            
                    
                    Linux C/C++ 软件包编译、安装原理详解
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.12" data-path="SSH详解.html">
            
                <a href="SSH详解.html">
            
                    
                    SSH 详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="Tomcat和Ngnix和Apache.html">
            
                <a href="Tomcat和Ngnix和Apache.html">
            
                    
                    Tomcat和Ngnix和Apache.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="UbuntuSoftwareInstall.html">
            
                <a href="UbuntuSoftwareInstall.html">
            
                    
                    Ubuntu 软件包安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="YAML-配置文件语言.html">
            
                <a href="YAML-配置文件语言.html">
            
                    
                    YAML 配置文件语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="bin目录详解.html">
            
                <a href="bin目录详解.html">
            
                    
                    bin目录详解.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="ffmpeg详解.html">
            
                <a href="ffmpeg详解.html">
            
                    
                    ffmpeg学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="trans命令.html">
            
                <a href="trans命令.html">
            
                    
                    trans命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.19" data-path="yum和rpm.html">
            
                <a href="yum和rpm.html">
            
                    
                    Yum 和 RPM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.20" data-path="从BashShell启动“窥探”Linux环境变量相关文件.html">
            
                <a href="从BashShell启动“窥探”Linux环境变量相关文件.html">
            
                    
                    Linux环境变量详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.21" data-path="新创建主机常用初始化配置.html">
            
                <a href="新创建主机常用初始化配置.html">
            
                    
                    新建主机常用初始化配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.22" data-path="正则表达式学习.html">
            
                <a href="正则表达式学习.html">
            
                    
                    正则表达式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.23" data-path="通过Linux开机启动项展开学习.html">
            
                <a href="通过Linux开机启动项展开学习.html">
            
                    
                    Linux开机启动项学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.24" data-path="防火墙学习.html">
            
                <a href="防火墙学习.html">
            
                    
                    防火墙学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Python/">
            
                <a href="../Python/">
            
                    
                    Python
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Python/BeautifulSoup.md">
            
                <span>
            
                    
                    Python3 BeautifulSoup 学习记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Python/Django.html">
            
                <a href="../Python/Django.html">
            
                    
                    Python Django 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../Python/IPython使用技巧.html">
            
                <a href="../Python/IPython使用技巧.html">
            
                    
                    IPython 使用技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../Python/Numpy.html">
            
                <a href="../Python/Numpy.html">
            
                    
                    Python Numpy 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../Python/Python小知识.html">
            
                <a href="../Python/Python小知识.html">
            
                    
                    Python 学习遇到的问题解决或扩展小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../Python/Python模块管理总结.html">
            
                <a href="../Python/Python模块管理总结.html">
            
                    
                    Python 模块管理总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../Python/flask学习.md">
            
                <span>
            
                    
                    Flask 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../Python/matplotlib.html">
            
                <a href="../Python/matplotlib.html">
            
                    
                    matplotlib.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../Python/re正则表达式.html">
            
                <a href="../Python/re正则表达式.html">
            
                    
                    re正则表达式.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="../Python/图形界面学习.html">
            
                <a href="../Python/图形界面学习.html">
            
                    
                    图形界面学习.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="../Python/常用图像库学习.html">
            
                <a href="../Python/常用图像库学习.html">
            
                    
                    Python3 常用图像库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="../Python/进阶学习.html">
            
                <a href="../Python/进阶学习.html">
            
                    
                    Python3 进阶学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Shell/">
            
                <a href="../Shell/">
            
                    
                    Shell
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Shell/shell小知识.html">
            
                <a href="../Shell/shell小知识.html">
            
                    
                    Shell小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Shell/Shell奇淫技巧.html">
            
                <a href="../Shell/Shell奇淫技巧.html">
            
                    
                    Shell奇淫技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../Shell/Linux文本操作三大利器-grep、sed、awk.html">
            
                <a href="../Shell/Linux文本操作三大利器-grep、sed、awk.html">
            
                    
                    grep、sed、awk 详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../Shell/Shell文本处理常用工具补遗.html">
            
                <a href="../Shell/Shell文本处理常用工具补遗.html">
            
                    
                    Shell文本处理常用工具补遗
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../Shell/句子解析.html">
            
                <a href="../Shell/句子解析.html">
            
                    
                    句子解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../Shell/识别是否是root用户.html">
            
                <a href="../Shell/识别是否是root用户.html">
            
                    
                    识别是否是root用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../Shell/识别系统.html">
            
                <a href="../Shell/识别系统.html">
            
                    
                    识别系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Vim/">
            
                <a href="../Vim/">
            
                    
                    Vim
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../Vim/Vim小知识.html">
            
                <a href="../Vim/Vim小知识.html">
            
                    
                    Vim小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../Vim/Vim编辑器再学习.html">
            
                <a href="../Vim/Vim编辑器再学习.html">
            
                    
                    Vim编辑器再学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../Vim/VimScript学习笔记.html">
            
                <a href="../Vim/VimScript学习笔记.html">
            
                    
                    VimScript 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../Vim/YouCompleteMe安装.html">
            
                <a href="../Vim/YouCompleteMe安装.html">
            
                    
                    YouCompleteMe安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../Vim/vimrc示例1.html">
            
                <a href="../Vim/vimrc示例1.html">
            
                    
                    vimrc示例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../Vim/vimrc备份.html">
            
                <a href="../Vim/vimrc备份.html">
            
                    
                    vimrc备份
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../Vim/Tmux快捷键.html">
            
                <a href="../Vim/Tmux快捷键.html">
            
                    
                    Tmux快捷键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Ansible/">
            
                <a href="../Ansible/">
            
                    
                    Ansible
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Ansible/术语表.html">
            
                <a href="../Ansible/术语表.html">
            
                    
                    术语表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Ansible/Ansible必知单词.html">
            
                <a href="../Ansible/Ansible必知单词.html">
            
                    
                    Ansible 常用单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../Ansible/Ansible学习.html">
            
                <a href="../Ansible/Ansible学习.html">
            
                    
                    Ansible 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../Ansible/Ansible常用模板.html">
            
                <a href="../Ansible/Ansible常用模板.html">
            
                    
                    Ansible常用模板.md
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Docker/">
            
                <a href="../Docker/">
            
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../Docker/Docker基础学习.html">
            
                <a href="../Docker/Docker基础学习.html">
            
                    
                    Docker 基础学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Docker/Docker小知识.html">
            
                <a href="../Docker/Docker小知识.html">
            
                    
                    Docker 小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../Docker/Docker必知单词.html">
            
                <a href="../Docker/Docker必知单词.html">
            
                    
                    Docker 学习中的单词
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/git学习.html">
            
                <a href="../Git/git学习.html">
            
                    
                    Git 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/git小技巧.html">
            
                <a href="../Git/git小技巧.html">
            
                    
                    Git 小技巧
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Zabbix/">
            
                <a href="../Zabbix/">
            
                    
                    Zabbix
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Zabbix/Docker安装配置Zabbix.html">
            
                <a href="../Zabbix/Docker安装配置Zabbix.html">
            
                    
                    Docker 安装配置 Zabbix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../Zabbix/术语单词.html">
            
                <a href="../Zabbix/术语单词.html">
            
                    
                    Zabbix 中常用单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../Zabbix/重置密码.html">
            
                <a href="../Zabbix/重置密码.html">
            
                    
                    重置 Zabbix 账户密码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../KVM/">
            
                <a href="../KVM/">
            
                    
                    KVM
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../KVM/安装配置.html">
            
                <a href="../KVM/安装配置.html">
            
                    
                    常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../KVM/虚拟机网络配置.html">
            
                <a href="../KVM/虚拟机网络配置.html">
            
                    
                    Bridged 桥接模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../Mysql/">
            
                <a href="../Mysql/">
            
                    
                    Mysql
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../Mysql/Ubuntu安装Navicat.html">
            
                <a href="../Mysql/Ubuntu安装Navicat.html">
            
                    
                    Ubuntu 安装及配置 Navicat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../Mysql/忘记root密码.html">
            
                <a href="../Mysql/忘记root密码.html">
            
                    
                    如何替换已忘记的 root 密码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../Nginx/">
            
                <a href="../Nginx/">
            
                    
                    Nginx
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../Nginx/Nginx学习笔记.html">
            
                <a href="../Nginx/Nginx学习笔记.html">
            
                    
                    Nginx 学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../NoClass/">
            
                <a href="../NoClass/">
            
                    
                    闲知
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../NoClass/容易读错的IT术语.html">
            
                <a href="../NoClass/容易读错的IT术语.html">
            
                    
                    容易读错的IT术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../NoClass/Linux-electron-tutorial.html">
            
                <a href="../NoClass/Linux-electron-tutorial.html">
            
                    
                    Linux electron 学习记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../NoClass/MarkdownSkills.html">
            
                <a href="../NoClass/MarkdownSkills.html">
            
                    
                    记录 Markdown 的各种小技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../NoClass/RaspeberryPi.html">
            
                <a href="../NoClass/RaspeberryPi.html">
            
                    
                    使用树莓派 3B 遇到的问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="../NoClass/华为国产手机芯片SoC.html">
            
                <a href="../NoClass/华为国产手机芯片SoC.html">
            
                    
                    华为国产手机芯片SoC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="../NoClass/图片格式详解及其对比.html">
            
                <a href="../NoClass/图片格式详解及其对比.html">
            
                    
                    图片格式详解及其对比
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="../NoClass/计算机小知识.html">
            
                <a href="../NoClass/计算机小知识.html">
            
                    
                    记录一些计算机的小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.8" data-path="../NoClass/诗词.html">
            
                <a href="../NoClass/诗词.html">
            
                    
                    诗词
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../OS/">
            
                <a href="../OS/">
            
                    
                    OS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="../OS/学习笔记.html">
            
                <a href="../OS/学习笔记.html">
            
                    
                    操作系统学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.2" data-path="../OS/术语单词.html">
            
                <a href="../OS/术语单词.html">
            
                    
                    OS 专业词语解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.3" data-path="../OS/SoCCPU.html">
            
                <a href="../OS/SoCCPU.html">
            
                    
                    SoC 与 CPU
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Tomcat/">
            
                <a href="../Tomcat/">
            
                    
                    Tomcat
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Tomcat/Tomcat 学习.html">
            
                <a href="../Tomcat/Tomcat 学习.html">
            
                    
                    Tomcat 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Tomcat/Tomcat学习.html">
            
                <a href="../Tomcat/Tomcat学习.html">
            
                    
                    Tomcat 学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../VPS/">
            
                <a href="../VPS/">
            
                    
                    VPS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="../VPS/AWS_lightsail.html">
            
                <a href="../VPS/AWS_lightsail.html">
            
                    
                    AWS LightSail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.2" data-path="../VPS/GCP_VM实例创建和基本配置.html">
            
                <a href="../VPS/GCP_VM实例创建和基本配置.html">
            
                    
                    GCP VM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.3" data-path="../VPS/ECS和VPS等等.html">
            
                <a href="../VPS/ECS和VPS等等.html">
            
                    
                    ECS和VPS
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../ComputerComposition/">
            
                <a href="../ComputerComposition/">
            
                    
                    ComputerComposition
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.19.1" data-path="../ComputerComposition/学习笔记.html">
            
                <a href="../ComputerComposition/学习笔记.html">
            
                    
                    计算机组成原理学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../ComputerNetwork/">
            
                <a href="../ComputerNetwork/">
            
                    
                    ComputerNetwork
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.20.1" data-path="../ComputerNetwork/ProWords.html">
            
                <a href="../ComputerNetwork/ProWords.html">
            
                    
                    术语单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.2" data-path="../ComputerNetwork/学习笔记.html">
            
                <a href="../ComputerNetwork/学习笔记.html">
            
                    
                    计算机网络学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.3" data-path="../ComputerNetwork/小知识.html">
            
                <a href="../ComputerNetwork/小知识.html">
            
                    
                    学习计算机网络中的小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.4" data-path="../NoClass/浏览器架构简析.md">
            
                <span>
            
                    
                    浏览器架构简析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../毕业论文/">
            
                <a href="../毕业论文/">
            
                    
                    毕业论文
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.21.1" data-path="../毕业论文/开题报告.html">
            
                <a href="../毕业论文/开题报告.html">
            
                    
                    开题报告
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >SSH 详解</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="ssh-&#x8BE6;&#x89E3;"><a name="ssh-&#x8BE6;&#x89E3;" class="plugin-anchor" href="#ssh-&#x8BE6;&#x89E3;"><i class="fa fa-link" aria-hidden="true"></i></a>SSH &#x8BE6;&#x89E3;</h1>
<h2 id="&#x76EE;&#x5F55;"><a name="&#x76EE;&#x5F55;" class="plugin-anchor" href="#&#x76EE;&#x5F55;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x76EE;&#x5F55;</h2>
<ul>
<li><p><a href="#ssh-&#x4ECB;&#x7ECD;-top">SSH &#x4ECB;&#x7ECD;</a></p>
</li>
<li><p><a href="#&#x5E94;&#x7528;&#x7BC7;-top">&#x5E94;&#x7528;&#x7BC7;</a></p>
<ul>
<li><a href="#linux-ssh-&#x76F8;&#x5173;&#x547D;&#x4EE4;">Linux SSH &#x76F8;&#x5173;&#x547D;&#x4EE4;</a></li>
<li><a href="#ssh-&#x5BC6;&#x7801;&#x6216;&#x65E0;&#x5BC6;&#x7801;-&#x5BC6;&#x94A5;-&#x767B;&#x5F55;">SSH &#x5BC6;&#x7801;&#x6216;&#x65E0;&#x5BC6;&#x7801;( &#x5BC6;&#x94A5; )&#x767B;&#x5F55;</a></li>
</ul>
</li>
<li><p><a href="#&#x539F;&#x7406;&#x7BC7;-top">&#x539F;&#x7406;&#x7BC7;</a></p>
<ul>
<li><a href="#&#x5BC6;&#x7801;&#x5B66;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;">&#x5BC6;&#x7801;&#x5B66;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;</a></li>
<li><a href="#ssh-&#x767B;&#x5F55;&#x539F;&#x7406;">SSH &#x767B;&#x5F55;&#x539F;&#x7406;</a></li>
</ul>
</li>
<li><p><a href="#ssh-&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;-top">SSH &#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;</a></p>
</li>
</ul>
<h2 id="ssh-&#x4ECB;&#x7ECD;-top"><a name="ssh-&#x4ECB;&#x7ECD;-top" class="plugin-anchor" href="#ssh-&#x4ECB;&#x7ECD;-top"><i class="fa fa-link" aria-hidden="true"></i></a>SSH &#x4ECB;&#x7ECD; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<ul>
<li><strong>Secure Shell</strong>&#xFF08;&#x5B89;&#x5168;&#x5916;&#x58F3;&#x534F;&#x8BAE;&#xFF0C;&#x7B80;&#x79F0; <strong>SSH</strong>&#xFF09;&#x662F;&#x4E00;&#x79CD;&#x52A0;&#x5BC6;&#x7684;<a href="https://zh.wikipedia.org/wiki/&#x7F51;&#x7EDC;&#x4F20;&#x8F93;&#x534F;&#x8BAE;" target="_blank">&#x7F51;&#x7EDC;&#x4F20;&#x8F93;&#x534F;&#x8BAE;</a>&#xFF0C;&#x53EF;&#x5728;&#x4E0D;&#x5B89;&#x5168;&#x7684;&#x7F51;&#x7EDC;&#x4E2D;&#x4E3A;&#x7F51;&#x7EDC;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x5B89;&#x5168;&#x7684;&#x4F20;&#x8F93;&#x73AF;&#x5883;</li>
<li>SSH &#x901A;&#x8FC7;&#x5728;&#x7F51;&#x7EDC;&#x4E2D;&#x521B;&#x5EFA;<a href="https://zh.wikipedia.org/w/index.php?title=&#x5B89;&#x5168;&#x96A7;&#x9053;&amp;action=edit&amp;redlink=1" target="_blank">&#x5B89;&#x5168;&#x96A7;&#x9053;</a>&#x6765;&#x5B9E;&#x73B0; SSH &#x5BA2;&#x6237;&#x7AEF;&#x4E0E;&#x670D;&#x52A1;&#x5668;&#x4E4B;&#x95F4;&#x7684;&#x8FDE;&#x63A5;</li>
<li>&#x5728;&#x8BBE;&#x8BA1;&#x4E0A;&#xFF0C;SSH &#x662F; <a href="https://zh.wikipedia.org/wiki/Telnet" target="_blank">Telnet</a> &#x548C;&#x975E;&#x5B89;&#x5168; <a href="https://zh.wikipedia.org/wiki/Unix_shell" target="_blank">shell</a> &#x7684;&#x66FF;&#x4EE3;&#x54C1;&#xFF0C;Telnet &#x548C; Berkeley <a href="https://zh.wikipedia.org/w/index.php?title=Rlogin&amp;action=edit&amp;redlink=1" target="_blank">rlogin</a>&#x3001;<a href="https://zh.wikipedia.org/wiki/&#x8FDC;&#x7A0B;&#x5916;&#x58F3;" target="_blank">rsh</a>&#x3001;<a href="https://zh.wikipedia.org/w/index.php?title=Rexec&amp;action=edit&amp;redlink=1" target="_blank">rexec </a>&#x7B49;&#x534F;&#x8BAE;&#x91C7;&#x7528;<a href="https://zh.wikipedia.org/wiki/&#x660E;&#x6587;" target="_blank">&#x660E;&#x6587;</a>&#x4F20;&#x8F93;&#xFF0C;&#x4F7F;&#x7528;&#x4E0D;&#x53EF;&#x9760;&#x7684;&#x5BC6;&#x7801;&#xFF0C;&#x5BB9;&#x6613;&#x906D;&#x5230;&#x76D1;&#x542C;&#x3001;<a href="https://zh.wikipedia.org/wiki/&#x6578;&#x64DA;&#x5305;&#x5206;&#x6790;&#x5668;" target="_blank">&#x55C5;&#x63A2;</a>&#x548C;<a href="https://zh.wikipedia.org/wiki/&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;" target="_blank">&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;</a></li>
<li>SSH&#x4F7F;&#x7528;<a href="https://zh.wikipedia.org/wiki/&#x4E3B;&#x5F9E;&#x5F0F;&#x67B6;&#x69CB;" target="_blank">&#x5BA2;&#x6237;&#x7AEF;-&#x670D;&#x52A1;&#x5668;</a>&#x6A21;&#x578B;&#xFF0C;&#x6807;&#x51C6;&#x7AEF;&#x53E3;&#x4E3A; 22&#x3002;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x9700;&#x8981;&#x5F00;&#x542F;SSH<a href="https://zh.wikipedia.org/wiki/&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;" target="_blank">&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;</a>&#x4EE5;&#x4FBF;&#x63A5;&#x53D7;&#x8FDC;&#x7AEF;&#x7684;&#x8FDE;&#x63A5;&#xFF0C;&#x800C;&#x7528;&#x6237;&#x9700;&#x8981;&#x4F7F;&#x7528; SSH &#x5BA2;&#x6237;&#x7AEF;&#x4E0E;&#x5176;&#x521B;&#x5EFA;&#x8FDE;&#x63A5;</li>
<li>SSH &#x7684;&#x7ECF;&#x5178;&#x7528;&#x9014;&#x662F;&#x767B;&#x5F55;&#x5230;&#x8FDC;&#x7A0B;&#x7535;&#x8111;&#x4E2D;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x3002;&#x9664;&#x6B64;&#x4E4B;&#x5916;&#xFF0C;SSH &#x4E5F;&#x652F;&#x6301;<a href="https://zh.wikipedia.org/wiki/&#x96A7;&#x9053;&#x534F;&#x8BAE;" target="_blank">&#x96A7;&#x9053;&#x534F;&#x8BAE;</a>&#x3001;<a href="https://zh.wikipedia.org/wiki/&#x7AEF;&#x53E3;&#x6620;&#x5C04;" target="_blank">&#x7AEF;&#x53E3;&#x6620;&#x5C04;</a>&#x548C; <a href="https://zh.wikipedia.org/wiki/X_Window&#x7CFB;&#x7D71;" target="_blank">X11</a> &#x8FDE;&#x63A5;&#x3002;&#x501F;&#x52A9; <a href="https://zh.wikipedia.org/wiki/SSH&#x6587;&#x4EF6;&#x4F20;&#x8F93;&#x534F;&#x8BAE;" target="_blank">SFTP</a> &#x6216; <a href="https://zh.wikipedia.org/wiki/&#x5B89;&#x5168;&#x590D;&#x5236;" target="_blank">SCP</a> &#x534F;&#x8BAE;&#xFF0C;SSH &#x8FD8;&#x53EF;&#x4EE5;&#x4F20;&#x8F93;&#x6587;&#x4EF6;</li>
</ul>
<h2 id="&#x5E94;&#x7528;&#x7BC7;-top"><a name="&#x5E94;&#x7528;&#x7BC7;-top" class="plugin-anchor" href="#&#x5E94;&#x7528;&#x7BC7;-top"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E94;&#x7528;&#x7BC7; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<h3 id="linux-ssh-&#x76F8;&#x5173;&#x547D;&#x4EE4;"><a name="linux-ssh-&#x76F8;&#x5173;&#x547D;&#x4EE4;" class="plugin-anchor" href="#linux-ssh-&#x76F8;&#x5173;&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>Linux SSH &#x76F8;&#x5173;&#x547D;&#x4EE4;</h3>
<p><strong><code>ssh -v &lt;user&gt;@&lt;hostip&gt;</code></strong> - &#x6253;&#x5370;&#x8FD0;&#x884C;&#x60C5;&#x51B5;&#x548C;&#x8C03;&#x8BD5;&#x4FE1;&#x606F;</p>
<p><strong><code>ssh -vv &lt;user&gt;@&lt;hostip&gt;</code></strong> - &#x6253;&#x5370;&#x66F4;&#x8BE6;&#x7EC6;&#x7684;&#x8FD0;&#x884C;&#x60C5;&#x51B5;&#x548C;&#x8C03;&#x8BD5;&#x4FE1;&#x606F;</p>
<p><strong><code>ssh -vvv &lt;user&gt;@&lt;hostip&gt;</code></strong> - &#x6253;&#x5370;&#x6700;&#x8BE6;&#x7EC6;&#x7684;&#x8FD0;&#x884C;&#x60C5;&#x51B5;&#x548C;&#x8C03;&#x8BD5;&#x4FE1;&#x606F;</p>
<p><strong><code>ssh &lt;user&gt;@&lt;hostip&gt;</code></strong> - &#x767B;&#x5F55; host</p>
<p><strong><code>ssh -J  &lt;&#x8DF3;&#x677F;&#x673A;&#x767B;&#x5F55;&#x7528;&#x6237;&gt;@&lt;ip&gt;:&lt;port&gt; &lt;&#x76EE;&#x6807;&#x673A;&#x767B;&#x5F55;&#x7528;&#x6237;&gt;@&lt;ip&gt; -p &lt;port&gt;</code></strong>- &#x901A;&#x8FC7;&#x8DF3;&#x677F;&#x673A;&#x767B;&#x5F55;&#x76EE;&#x6807;&#x673A;</p>
<blockquote>
<p>ssh &#x547D;&#x4EE4;&#x767B;&#x5F55;&#x5931;&#x8D25;&#x540E;&#xFF0C;&#x91CD;&#x8BD5;&#x65F6;&#x603B;&#x662F;&#x5361;&#x4F4F;&#xFF0C;&#x4E00;&#x822C;&#x5728;&#x91CD;&#x8BD5;&#x524D;&#x5148;&#x91CD;&#x542F; sshd &#x670D;&#x52A1;&#x5C31;&#x53EF;&#x4EE5;&#x89E3;&#x51B3;</p>
</blockquote>
<p><strong><code>ssh &lt;user&gt;@&lt;hostip&gt; &lt;command&gt;</code></strong> - &#x767B;&#x5F55; host &#x76F4;&#x63A5;&#x6267;&#x884C;&#x547D;&#x4EE4;</p>
<p><strong><code>ssh &lt;user&gt;@&lt;hostip&gt; &apos;tar cz file&apos; | tar zxv</code></strong> - &#x672C;&#x5730;<code>~/file</code> &#x6587;&#x4EF6;&#x901A;&#x8FC7; ssh &#x52A0;&#x5BC6;&#x4F20;&#x8F93;&#x5230; hostip &#x7684;<code>~</code> &#x76EE;&#x5F55;&#x4E0B;</p>
<p><strong><code>ssh &lt;user&gt;@&lt;hostip&gt; &apos;tar cz file&apos; | tar xzv</code></strong> - hostip &#x7684;<code>~/file</code> &#x6587;&#x4EF6;&#x901A;&#x8FC7; ssh &#x52A0;&#x5BC6;&#x4F20;&#x8F93;&#x5230;&#x672C;&#x5730;&#x7684; <code>~</code> &#x76EE;&#x5F55;&#x4E0B;</p>
<p><strong><code>scp &lt;local_file_path&gt; &lt;user&gt;@&lt;hostip&gt;:&lt;remote_folder_path&gt;</code></strong> - &#x901A;&#x8FC7; scp &#x547D;&#x4EE4;&#x4E0A;&#x4F20;&#x672C;&#x5730;<strong>&#x6587;&#x4EF6;</strong>&#x5230;&#x8FDC;&#x7A0B;</p>
<p><strong><code>scp -r &lt;local_file_path&gt; &lt;user&gt;@&lt;hostip&gt;:&lt;remote_folder_path&gt;</code></strong> - &#x901A;&#x8FC7; scp &#x547D;&#x4EE4;&#x4E0A;&#x4F20;&#x672C;&#x5730;<strong>&#x6587;&#x4EF6;&#x5939;</strong>&#x5230;&#x8FDC;&#x7A0B;</p>
<p><strong><code>scp &lt;user&gt;@&lt;hostip&gt;:&lt;remote_folder_path&gt;  &lt;local_file_path&gt;</code></strong> - &#x901A;&#x8FC7; scp &#x547D;&#x4EE4;&#x4F20;&#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;<strong>&#x6587;&#x4EF6;</strong>&#x5230;&#x672C;&#x5730;</p>
<p><strong><code>scp -r &lt;user&gt;@&lt;hostip&gt;:&lt;remote_folder_path&gt;  &lt;local_file_path&gt;</code></strong>- &#x901A;&#x8FC7; scp &#x547D;&#x4EE4;&#x4F20;&#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;<strong>&#x6587;&#x4EF6;</strong>&#x5939;&#x5230;&#x672C;&#x5730;</p>
<pre><code>scp -o &quot;ProxyCommand=nc -X connect -x proxy_ip:proxy_port %h %p&quot;  filename  username@target_ip:/target_path
scp -o &quot;ProxyCommand=nc -X connect -x 47.101.133.201:22 %h %p&quot;  /home/xcq/test1  root@54.250.52.188:/root
</code></pre><p><strong><code>ssh-keygen</code></strong> - &#x9ED8;&#x8BA4;&#x5728;<code>~/.ssh/</code> &#x4E0B;&#x751F;&#x6210; RSA &#x516C;&#x79C1;&#x5BC6;&#x94A5;&#x5BF9;</p>
<p><strong><code>ssh-keygen -t dsa</code></strong> - &#x5728;<code>~/.ssh/</code> &#x4E0B;&#x751F;&#x6210; dsa &#x516C;&#x79C1;&#x5BC6;&#x94A5;&#x5BF9;</p>
<p><strong><code>ssh-copy-id &lt;user&gt;@&lt;hostip&gt;</code></strong>  -  &#x9ED8;&#x8BA4;&#x5C06;&#x672C;&#x5730;&#x4E3B;&#x673A;&#x516C;&#x94A5; <code>~/.ssh/id_rsa.pub</code> &#x6DFB;&#x52A0;&#x5230;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668; <code>&lt;user&gt;/.ssh/authorized_keys</code> &#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x5B9E;&#x73B0;&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;</p>
<p><strong><code>ssh-copy-id -i &lt;&#x516C;&#x94A5;&#x8DEF;&#x5F84;&gt;/id_rsa.pub &lt;user&gt;@&lt;hostip&gt;</code></strong> - &#x5C06;&#x672C;&#x5730;&#x4E3B;&#x673A;&#x516C;&#x94A5; <code>&#x516C;&#x94A5;&#x8DEF;&#x5F84;</code> &#x4E2D;&#x7684; <code>id_rsa.pub</code>  &#x6DFB;&#x52A0;&#x5230;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668; <code>&lt;user&gt;/.ssh/authorized_keys</code>  &#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x5B9E;&#x73B0;&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;</p>
<p><strong><code>/etc/ssh/ssh.config</code></strong> - &#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</p>
<p><strong><code>/etc/ssh/sshd.config</code></strong> - &#x670D;&#x52A1;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</p>
<ul>
<li><p><strong><code>&#x5F00;&#x542F;&#x5BC6;&#x94A5;&#x8BA4;&#x8BC1;&#x767B;&#x5F55;</code></strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x5F00;&#x542F;&#x5BC6;&#x94A5;&#x9A8C;&#x8BC1;</span>
RSAAuthentication yes
PubkeyAuthentication yes RSAAuthentication yes
<span class="hljs-comment"># &#x5236;&#x5B9A;&#x516C;&#x94A5;&#x6587;&#x4EF6;&#x8DEF;&#x5F84;</span>
AuthorsizedKeysFile <span class="hljs-variable">$h</span>/.ssh/authorized_keys
</code></pre>
</li>
<li><p><strong><code>&#x5173;&#x95ED;&#x5BC6;&#x7801;&#x767B;&#x5F55;</code></strong> </p>
<pre><code class="lang-bash">PasswordAuthentication no
</code></pre>
</li>
</ul>
<p><strong><code>~/.ssh/known_hosts</code></strong> - &#x67E5;&#x770B;&#x5DF2;&#x77E5;&#x4E3B;&#x673A;&#x7684;&#x516C;&#x94A5;</p>
<ul>
<li><p><strong><code>&#x5173;&#x95ED; hostkeychecking&#xFF0C;&#x521D;&#x6B21;&#x767B;&#x5F55;&#x65F6;&#x4E0D;&#x7528;&#x8F93;&#x5165; yes</code></strong></p>
<pre><code class="lang-bash">StrictHostKeyChecking no
</code></pre>
</li>
</ul>
<p><strong><code>~/.ssh/authorized_keys</code></strong> - &#x5B58;&#x653E;&#x9700;&#x8981;&#x5BC6;&#x94A5;&#x767B;&#x5F55;&#x672C;&#x673A;&#x7684; host &#x516C;&#x94A5;</p>
<h3 id="ssh-&#x5BC6;&#x7801;&#x6216;&#x65E0;&#x5BC6;&#x7801;-&#x5BC6;&#x94A5;-&#x767B;&#x5F55;"><a name="ssh-&#x5BC6;&#x7801;&#x6216;&#x65E0;&#x5BC6;&#x7801;-&#x5BC6;&#x94A5;-&#x767B;&#x5F55;" class="plugin-anchor" href="#ssh-&#x5BC6;&#x7801;&#x6216;&#x65E0;&#x5BC6;&#x7801;-&#x5BC6;&#x94A5;-&#x767B;&#x5F55;"><i class="fa fa-link" aria-hidden="true"></i></a>SSH &#x5BC6;&#x7801;&#x6216;&#x65E0;&#x5BC6;&#x7801;( &#x5BC6;&#x94A5; )&#x767B;&#x5F55;</h3>
<ul>
<li>SSH &#x767B;&#x5F55;&#x901A;&#x5E38;&#x6709;<strong>&#x5BC6;&#x7801;&#x767B;&#x5F55;</strong>&#x548C;<strong>&#x5BC6;&#x94A5;&#x767B;&#x5F55; ( &#x6216;&#x65E0;&#x5BC6;&#x7801;&#x76F4;&#x63A5;&#x767B;&#x5F55; )</strong></li>
</ul>
<p><strong><code>&#x5BC6;&#x7801;&#x767B;&#x5F55;</code></strong></p>
<ul>
<li><a href="https://github.com/Xiechengqi/XcqDailyLearningNotes/blob/master/Linux/VPS/AWS/lightsail.md" target="_blank">&#x4E91;&#x670D;&#x52A1;&#x5668;&#x521B;&#x5EFA;&#x914D;&#x540E;&#x7F6E;&#x5BC6;&#x7801;&#x767B;&#x5F55;</a></li>
</ul>
<p><strong><code>&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;</code></strong></p>
<ol>
<li>&#x751F;&#x6210;&#x672C;&#x5730; RSA &#x6216; DSA &#x5BC6;&#x94A5;&#x5BF9;</li>
</ol>
<pre><code class="lang-bash">$ ssh-keygen
<span class="hljs-comment"># &#x4E00;&#x8DEF;&#x56DE;&#x8F66;&#x5C31;&#x53EF;</span>
<span class="hljs-comment"># root &#x7528;&#x6237;&#x751F;&#x6210;&#x516C;&#x79C1;&#x94A5;&#x5728;&#xFF1A;/root/.ssh/</span>
<span class="hljs-comment"># &#x975E; root &#x7528;&#x6237;&#xFF1A;&#x5728;&#x81EA;&#x5DF1;&#x4E3B;&#x76EE;&#x5F55;&#x4E0B;&#x7684; .ssh/</span>
</code></pre>
<ol>
<li>&#x5C06;&#x672C;&#x5730;&#x516C;&#x94A5;&#x5185;&#x5BB9;&#x8FFD;&#x52A0;&#x5230;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668;&#x7684;<code>/root/.ssh/authorized_keys</code> &#x6216; &#x7528;&#x6237;&#x76EE;&#x5F55;&#x4E0B;&#x7684;<code>.ssh/authorized_keys</code></li>
</ol>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x4E5F;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; ssh-copy-id</span>
$ ssh-copy-id root@&#x76EE;&#x6807;&#x8282;&#x70B9;IP

<span class="hljs-comment"># ssh-copy-id root@192.168.56.101</span>
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: <span class="hljs-string">&quot;/root/.ssh/id_rsa.pub&quot;</span>
/usr/bin/ssh-copy-id: INFO: attempting to <span class="hljs-built_in">log</span> <span class="hljs-keyword">in</span> with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- <span class="hljs-keyword">if</span> you are prompted now it is to install the new keys
root@192.168.56.101<span class="hljs-string">&apos;s password: 

Number of key(s) added: 1

Now try logging into the machine, with:   &quot;ssh &apos;</span>root@192.168.56.101<span class="hljs-string">&apos;&quot;
and check to make sure that only the key(s) you wanted were added.
</span></code></pre>
<ol>
<li>&#x91CD;&#x542F; ssh, &#x9000;&#x51FA;&#x518D;&#x6B21;&#x767B;&#x9646;&#x5373;&#x53EF;&#x5B9E;&#x73B0;&#x65E0;&#x5BC6;&#x7801;&#x767B;&#x5F55;</li>
</ol>
<h2 id="&#x539F;&#x7406;&#x7BC7;-top"><a name="&#x539F;&#x7406;&#x7BC7;-top" class="plugin-anchor" href="#&#x539F;&#x7406;&#x7BC7;-top"><i class="fa fa-link" aria-hidden="true"></i></a>&#x539F;&#x7406;&#x7BC7; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<h3 id="&#x5BC6;&#x7801;&#x5B66;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;"><a name="&#x5BC6;&#x7801;&#x5B66;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;" class="plugin-anchor" href="#&#x5BC6;&#x7801;&#x5B66;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5BC6;&#x7801;&#x5B66;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;</h3>
<ul>
<li>&#x52A0;&#x5BC6;&#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x5206;&#x4E3A;&#x4E24;&#x5927;&#x7C7B;&#xFF0C;&#x4E00;&#x7C7B;&#x662F;&#x5355;&#x94A5;&#x52A0;&#x5BC6;&#xFF08; private key cryptography &#xFF09;&#xFF0C;&#x8FD8;&#x6709;&#x4E00;&#x7C7B;&#x53EB;&#x505A;&#x53CC;&#x94A5;&#x52A0;&#x5BC6;&#xFF08; public key cryptography &#xFF09;&#x3002;&#x524D;&#x8005;&#x7684;&#x52A0;&#x5BC6;&#x548C;&#x89E3;&#x5BC6;&#x8FC7;&#x7A0B;&#x90FD;&#x7528;&#x540C;&#x4E00;&#x5957;&#x5BC6;&#x7801;&#xFF0C;&#x540E;&#x8005;&#x7684;&#x52A0;&#x5BC6;&#x548C;&#x89E3;&#x5BC6;&#x8FC7;&#x7A0B;&#x7528;&#x7684;&#x662F;&#x4E24;&#x5957;&#x5BC6;&#x7801;</li>
</ul>
<blockquote>
<ul>
<li>&#x3010;m&#xEC; yu&#xE8;&#x3011;&#x8BFB;&#x97F3;&#x4E0B;&#x7684;&#x201C;&#x5BC6;&#x94A5;&#x201D;&#x7684;&#x610F;&#x601D;&#xFF1A;&#x7D27;&#x5BC6;&#x7684;&#x9501;&#x95ED;&#x3002;&#x8FD9;&#x91CC;&#x7684;&#x7528;&#x6CD5;&#x7528;&#x4E86;&#x201C;&#x5BC6;&#x94A5;&#x201D;&#x7684;&#x52A8;&#x8BCD;&#x6027;&#x8D28;&#x3002;</li>
<li>&#x3010; m&#xEC; y&#xE0;o&#x3011;&#x8BFB;&#x97F3;&#x4E0B;&#x7684;&#x201C;&#x5BC6;&#x94A5;&#x201D;&#x7684;&#x610F;&#x601D;&#xFF1A;&#x5BC6;&#x7801;&#x5B66;&#x4E2D;&#x7684;&#x4E13;&#x6709;&#x540D;&#x8BCD;&#xFF0C;&#x6307;&#x89E3;&#x5BC6;&#x6240;&#x9700;&#x8981;&#x7684;&#x7279;&#x6B8A;&#x4EE3;&#x7801;&#x3002;&#x8FD9;&#x91CC;&#x7528;&#x4E86;&#x201C;&#x5BC6;&#x94A5;&#x201D;&#x7684;&#x540D;&#x8BCD;&#x6027;</li>
</ul>
</blockquote>
<p><strong><code>&#x5BF9;&#x79F0;&#x5BC6;&#x94A5;&#x52A0;&#x5BC6; - Symmetric-key algorithm</code></strong> </p>
<ul>
<li><p>&#x53C8;&#x79F0;&#x4E3A;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x3001;&#x79C1;&#x94A5;&#x52A0;&#x5BC6;&#x3001;&#x5171;&#x4EAB;&#x5BC6;&#x94A5;&#x52A0;&#x5BC6;&#x3001;&#x5355;&#x94A5;&#x52A0;&#x5BC6;</p>
</li>
<li><p>&#x8FD9;&#x7C7B;&#x7B97;&#x6CD5;&#x5728;&#x52A0;&#x5BC6;&#x548C;&#x89E3;&#x5BC6;&#x65F6;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684;&#x5BC6;&#x94A5;&#xFF0C;&#x6216;&#x662F;&#x4F7F;&#x7528;&#x4E24;&#x4E2A;&#x53EF;&#x4EE5;&#x7B80;&#x5355;&#x5730;&#x76F8;&#x4E92;&#x63A8;&#x7B97;&#x7684;&#x5BC6;&#x94A5;&#xFF0C;&#x6240;&#x4EE5;&#x8FD9;&#x88AB;&#x79F0;&#x4E3A; &quot;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&quot;</p>
</li>
<li>1976 &#x5E74;&#x4EE5;&#x524D;&#xFF0C;&#x6240;&#x6709;&#x7684;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&#x90FD;&#x4F7F;&#x7528; &quot;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&quot;&#xFF0C;&#x901A;&#x7528;&#x7684;&#x5355;&#x94A5;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&#x4E3A; DES&#xFF08; Data Encryption Standard &#xFF09;</li>
<li>&#x5728;&#x5BF9;&#x79F0;&#x5BC6;&#x94A5;&#x52A0;&#x5BC6;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x5BC6;&#x94A5;&#x53EA;&#x6709;&#x4E00;&#x628A;&#xFF0C;&#x6240;&#x4EE5;&#x5BC6;&#x94A5;&#x7684;&#x4FDD;&#x5B58;&#x53D8;&#x5F97;&#x5F88;&#x91CD;&#x8981;&#x3002;&#x4E00;&#x65E6;&#x5BC6;&#x94A5;&#x6CC4;&#x6F0F;&#xFF0C;&#x5BC6;&#x7801;&#x4E5F;&#x5C31;&#x88AB;&#x7834;&#x89E3;</li>
</ul>
<p><strong><code>&#x516C;&#x5F00;&#x5BC6;&#x94A5;&#x52A0;&#x5BC6; - Public-key cryptography</code></strong></p>
<ul>
<li><p>&#x53C8;&#x79F0;&#x4E3A;&#x975E;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6; - asymmetric cryptography</p>
</li>
<li><p>&#x516C;&#x5F00;&#x5BC6;&#x94A5;&#x52A0;&#x5BC6;&#x9700;&#x8981;&#x4E24;&#x4E2A;&#x5BC6;&#x94A5;&#xFF0C;&#x4E00;&#x4E2A;&#x662F;&#x516C;&#x5F00;&#x5BC6;&#x94A5;&#xFF08; &#x52A0;&#x5BC6;&#x4F7F;&#x7528; &#xFF09;&#xFF0C;&#x53E6;&#x4E00;&#x4E2A;&#x662F;&#x79C1;&#x6709;&#x5BC6;&#x94A5;&#xFF08; &#x89E3;&#x5BC6;&#x4F7F;&#x7528; &#xFF09;</p>
</li>
</ul>
<h3 id="ssh-&#x539F;&#x7406;&#x7B80;&#x8FF0;"><a name="ssh-&#x539F;&#x7406;&#x7B80;&#x8FF0;" class="plugin-anchor" href="#ssh-&#x539F;&#x7406;&#x7B80;&#x8FF0;"><i class="fa fa-link" aria-hidden="true"></i></a>SSH &#x539F;&#x7406;&#x7B80;&#x8FF0;</h3>
<p><strong><code>ssh &#x5BC6;&#x7801;&#x767B;&#x5F55;&#x539F;&#x7406;</code></strong></p>
<div align="center">
<img src="images/sshPrinciple.png"><br>
</div>

<ol>
<li>&#x7528;&#x6237;&#x4F7F;&#x7528;<code>ssh user@host</code> &#x547D;&#x4EE4;&#x5BF9;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#x53D1;&#x8D77;&#x767B;&#x9646;</li>
<li>&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#x5C06;&#x81EA;&#x5DF1;&#x7684;&#x516C;&#x94A5;&#x8FD4;&#x56DE;&#x7ED9;&#x8BF7;&#x6C42;&#x4E3B;&#x673A;</li>
<li>&#x8BF7;&#x6C42;&#x4E3B;&#x673A;&#x4F7F;&#x7528;&#x516C;&#x94A5;&#x5BF9;&#x7528;&#x6237;&#x8F93;&#x5165;&#x7684;&#x5BC6;&#x7801;&#x8FDB;&#x884C;&#x52A0;&#x5BC6;</li>
<li>&#x8BF7;&#x6C42;&#x4E3B;&#x673A;&#x5C06;&#x52A0;&#x5BC6;&#x540E;&#x7684;&#x5BC6;&#x7801;&#x53D1;&#x9001;&#x7ED9;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;</li>
<li>&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#x4F7F;&#x7528;&#x79C1;&#x94A5;&#x5BF9;&#x5BC6;&#x7801;&#x8FDB;&#x884C;&#x89E3;&#x5BC6;</li>
<li>&#x6700;&#x540E;&#xFF0C;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#x5224;&#x65AD;&#x89E3;&#x5BC6;&#x540E;&#x7684;&#x5BC6;&#x7801;&#x662F;&#x5426;&#x4E0E;&#x7528;&#x6237;&#x5BC6;&#x7801;&#x4E00;&#x81F4;&#xFF0C;&#x4E00;&#x81F4;&#x5C31;&#x540C;&#x610F;&#x767B;&#x9646;&#xFF0C;&#x5426;&#x5219;&#x53CD;&#x4E4B;</li>
</ol>
<p><strong><code>ssh &#x5BC6;&#x94A5;&#x767B;&#x5F55;&#x539F;&#x7406;</code></strong></p>
<div align="center">
<img src="images/sshPubKeyLoginPrinciple.png"><br>
</div>

<ol>
<li>&#x7528;&#x6237;&#x4F7F;&#x7528;<code>ssh user@host</code> &#x547D;&#x4EE4;&#x5BF9;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#x53D1;&#x8D77;&#x767B;&#x9646;</li>
<li>&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#x5BF9;&#x7528;&#x6237;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x968F;&#x673A;&#x4E32;</li>
<li>&#x7528;&#x6237;&#x6240;&#x5728;&#x4E3B;&#x673A;&#x4F7F;&#x7528;&#x79C1;&#x94A5;&#x5BF9;&#x8FD9;&#x4E2A;&#x968F;&#x673A;&#x4E32;&#x8FDB;&#x884C;&#x52A0;&#x5BC6;&#xFF0C;&#x5E76;&#x5C06;&#x52A0;&#x5BC6;&#x7684;&#x968F;&#x673A;&#x4E32;&#x8FD4;&#x56DE;&#x81F3;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;</li>
<li>&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#x4F7F;&#x7528;&#x5206;&#x53D1;&#x8FC7;&#x6765;&#x7684;&#x516C;&#x94A5;&#x5BF9;&#x52A0;&#x5BC6;&#x968F;&#x673A;&#x4E32;&#x8FDB;&#x884C;&#x89E3;&#x5BC6;</li>
<li>&#x5982;&#x679C;&#x89E3;&#x5BC6;&#x6210;&#x529F;&#xFF0C;&#x5C31;&#x8BC1;&#x660E;&#x7528;&#x6237;&#x7684;&#x767B;&#x9646;&#x4FE1;&#x606F;&#x662F;&#x6B63;&#x786E;&#x7684;&#xFF0C;&#x5219;&#x5141;&#x8BB8;&#x767B;&#x9646;&#xFF1B;&#x5426;&#x5219;&#x53CD;&#x4E4B;</li>
</ol>
<h3 id="ssh-&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;-top"><a name="ssh-&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;-top" class="plugin-anchor" href="#ssh-&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;-top"><i class="fa fa-link" aria-hidden="true"></i></a>SSH &#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB; <a href="#&#x76EE;&#x5F55;">[Top]</a></h3>
<p>&#x200B;    &#x7531;&#x4E8E; SSH &#x4E0D;&#x50CF; https &#x534F;&#x8BAE;&#x90A3;&#x6837;&#xFF0C;SSH &#x534F;&#x8BAE;&#x7684;&#x516C;&#x94A5;&#x662F;&#x6CA1;&#x6709;&#x8BC1;&#x4E66;&#x4E2D;&#x5FC3;&#xFF08;CA&#xFF09;&#x516C;&#x8BC1;&#x7684;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x90FD;&#x662F;&#x81EA;&#x5DF1;&#x7B7E;&#x53D1;&#x7684;&#x3002;&#x8FD9;&#x5C31;&#x5BFC;&#x81F4;&#x5982;&#x679C;&#x6709;&#x4EBA;&#x622A;&#x83B7;&#x4E86;&#x767B;&#x9646;&#x8BF7;&#x6C42;&#xFF0C;&#x7136;&#x540E;&#x5192;&#x5145;&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;&#xFF0C;&#x5C06;&#x4F2A;&#x9020;&#x7684;&#x516C;&#x94A5;&#x53D1;&#x7ED9;&#x7528;&#x6237;&#xFF0C;&#x90A3;&#x4E48;&#x7528;&#x6237;&#x5F88;&#x96BE;&#x8FA8;&#x522B;&#x771F;&#x4F2A;&#xFF0C;&#x7528;&#x6237;&#x518D;&#x901A;&#x8FC7;&#x4F2A;&#x9020;&#x7684;&#x516C;&#x94A5;&#x52A0;&#x5BC6;&#x5BC6;&#x7801;&#xFF0C;&#x518D;&#x53D1;&#x9001;&#x7ED9;&#x5192;&#x5145;&#x4E3B;&#x673A;&#xFF0C;&#x6B64;&#x65F6;&#x5192;&#x5145;&#x7684;&#x4E3B;&#x673A;&#x5C31;&#x53EF;&#x4EE5;&#x83B7;&#x53D6;&#x7528;&#x6237;&#x7684;&#x767B;&#x9646;&#x5BC6;&#x7801;&#x4E86;&#xFF0C;&#x90A3;&#x4E48; SSH &#x7684;&#x5B89;&#x5168;&#x673A;&#x5236;&#x5C31;&#x8361;&#x7136;&#x65E0;&#x5B58;&#x4E86;&#xFF0C;&#x8FD9;&#x4E5F;&#x5C31;&#x662F;&#x6211;&#x4EEC;&#x5E38;&#x8BF4;&#x7684;&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;</p>
<h2 id="&#x53C2;&#x8003;"><a name="&#x53C2;&#x8003;" class="plugin-anchor" href="#&#x53C2;&#x8003;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53C2;&#x8003;</h2>
<ul>
<li><p><strong><a href="https://blog.tjll.net/ssh-kung-fu/" target="_blank">SSH Kung Fu</a></strong></p>
</li>
<li><p><a href="https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/scp.html" target="_blank">scp &#x8DE8;&#x673A;&#x8FDC;&#x7A0B;&#x62F7;&#x8D1D;</a></p>
</li>
<li><p><a href="https://www.hi-linux.com/posts/929.html" target="_blank">&#x5982;&#x4F55;&#x900F;&#x8FC7; SSH &#x4EE3;&#x7406;&#x7A7F;&#x8D8A;&#x8DF3;&#x677F;&#x673A;</a></p>
</li>
<li><p><a href="http://www.ruanyifeng.com/blog/2011/08/what_is_a_digital_signature.html" target="_blank">&#x6570;&#x5B57;&#x7B7E;&#x540D;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;- &#x962E;&#x4E00;&#x5CF0;</a></p>
</li>
<li><a href="http://www.ruanyifeng.com/blog/2011/12/ssh_remote_login.html" target="_blank">SSH&#x539F;&#x7406;&#x4E0E;&#x8FD0;&#x7528; - &#x962E;&#x4E00;&#x5CF0;</a></li>
<li><a href="http://www.ruanyifeng.com/blog/2011/12/ssh_remote_login.html" target="_blank">SSH&#x539F;&#x7406;&#x4E0E;&#x8FD0;&#x7528;&#xFF08;&#x4E00;&#xFF09;&#xFF1A;&#x8FDC;&#x7A0B;&#x767B;&#x5F55; - &#x962E;&#x4E00;&#x5CF0;</a></li>
<li><p><a href="https://www.ruanyifeng.com/blog/2011/12/ssh_port_forwarding.html" target="_blank">SSH&#x539F;&#x7406;&#x4E0E;&#x8FD0;&#x7528;&#xFF08;&#x4E8C;&#xFF09;&#xFF1A;&#x8FDC;&#x7A0B;&#x64CD;&#x4F5C;&#x4E0E;&#x7AEF;&#x53E3;&#x8F6C;&#x53D1; - &#x962E;&#x4E00;&#x5CF0;</a></p>
</li>
<li><p><a href="https://www.jellythink.com/archives/555" target="_blank">&#x8BE6;&#x89E3;SSH&#x539F;&#x7406; - &#x679C;&#x51BB;&#x60F3;</a></p>
</li>
<li><a href="https://www.cnblogs.com/ftl1012/p/ssh.html" target="_blank">Linux ssh&#x547D;&#x4EE4;&#x8BE6;&#x89E3; - &#x5C0F;a&#x7396;&#x62FE;&#x67D2;</a></li>
</ul>
<footer class="page-footer-ex"> <span class="page-footer-ex-copyright"> <a href="https://github.com/Xiechengqi" target="_blank">Xiechengqi</a> </span> &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0; <span class="page-footer-ex-footer-update"> <strong>&#x6700;&#x65B0;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;</strong> 2020-01-04 15:54:38 </span> </footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Linux编译安装软件包详解.html" class="navigation navigation-prev " aria-label="Previous page: Linux C/C++ 软件包编译、安装原理详解">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Tomcat和Ngnix和Apache.html" class="navigation navigation-next " aria-label="Next page: Tomcat和Ngnix和Apache.md">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"SSH 详解","level":"1.4.12","depth":2,"next":{"title":"Tomcat和Ngnix和Apache.md","level":"1.4.13","depth":2,"path":"Linux/Tomcat和Ngnix和Apache.md","ref":"Linux/Tomcat和Ngnix和Apache.md","articles":[]},"previous":{"title":"Linux C/C++ 软件包编译、安装原理详解","level":"1.4.11","depth":2,"path":"Linux/Linux编译安装软件包详解.md","ref":"Linux/Linux编译安装软件包详解.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-livereload","-sharing","expandable-chapters","popup","pageview-count","code","back-to-top-button","hide-element","github-buttons","github","splitter","search-pro","anchors","page-footer-ex","advanced-emoji","sharing-plus"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/Xiechengqi/LearningNotes"},"page-footer-ex":{"copyright":"[Xiechengqi](https://github.com/Xiechengqi)","markdown":true,"update_format":"YYYY-MM-DD HH:mm:ss","update_label":"<strong>最新修订时间：</strong>"},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"buttons":[{"user":"Xiechengqi","repo":"LearningNotes","type":"star","size":"small","count":true}]},"advanced-emoji":{"embedEmojis":false},"sharing":{"qq":false,"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"日常学习笔记","language":"zh-hans","gitbook":"*","description":"日常学习笔记"},"file":{"path":"Linux/SSH详解.md","mtime":"2020-01-04T07:54:38.964Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-28T02:57:41.582Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

